/*
 * @Description: 箭头列表   ArrowList
 * @version: 
 * @Company: 
 * @Author: ZhengZhuang
 * @Date: 2019-08-30 16:30:39
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2019-12-13 09:37:08
 */
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:C20Driver/routers/navigator_util.dart';

class ArrowList extends StatelessWidget {
  ArrowList(
      {Key key,
      this.titleBox,
      this.contextDex,
      this.rightIconState,
      this.route});
  final String titleBox;
  final String contextDex;
  final bool rightIconState;
  final String route;

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      padding: EdgeInsets.only(
        top: ScreenUtil().setWidth(23.0),
        bottom: ScreenUtil().setWidth(23.0),
        left: ScreenUtil().setWidth(23.0),
        right: ScreenUtil().setWidth(23.0),
      ),
      child: Row(
        children: <Widget>[
          Expanded(
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Text(
                  titleBox,
                  style: TextStyle(
                    fontSize: ScreenUtil().setSp(32.0),
                    color: Colors.black87,
                  ),
                ),
                Text(
                  contextDex,
                  style: TextStyle(
                    fontSize: ScreenUtil().setSp(32.0),
                    color: Colors.black38,
                  ),
                ),
              ],
            ),
          ),
          Offstage(
            offstage: rightIconState == null,
            child: Icon(Icons.keyboard_arrow_right, color: Colors.black26),
          )
        ],
      ),
    );
  }
}
